//
//  HZGoodsModel.h
//  app
//
//  Created by 刘华舟 on 15/5/20.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import <Foundation/Foundation.h>

static const CGFloat kHZGoodsTabFontRateSix = 1.100;
static const CGFloat kHZGoodsTabFontRatePlus = 1.100;

//table Cell
static const NSInteger kHZGoodsTabViewCellMargin = 16;
static const CGFloat kHZGoodsTabViewCellHeight = 160+2*kHZGoodsTabViewCellMargin;

static const NSInteger kHZGoodsViewTeMaiBtnHeight = 48;
static const NSInteger kHZGoodsViewTeMaiBtnWidth = 148;

//collection Cell
static const NSInteger kHZGoodsColLabelHeight = 80;
static const NSInteger kHZGoodsColViewMargin = 6;
static const NSInteger kHZGoodsColViewWidth = 310;

static const CGFloat kHZGoodsColViewHeight = kHZGoodsColViewWidth + kHZGoodsColLabelHeight + 6*kHZGoodsColViewMargin + kHZGoodsColLabelHeight/2;


typedef NS_ENUM(NSInteger, HZGoodsModelType) {
    HZGoodsModelTypeNormal = 0,
    HZGoodsModelTypeTeMai
};

@interface HZGoodsModel : NSObject

//details 商品信息
@property (strong, nonatomic, readonly) NSString *shopID;
@property (strong, nonatomic, readonly) NSString *brandID;      //品牌id
@property (strong, nonatomic, readonly) NSString *classifyID;   //分类id
@property (strong, nonatomic, readonly) NSString *keywords;     //功效字段
@property (strong, nonatomic, readonly) NSString *productID;
@property (strong, nonatomic, readonly) NSString *productTitle;
@property (strong, nonatomic, readonly) NSString *picURL;
@property (strong, nonatomic, readonly) NSString *picWidth;
@property (strong, nonatomic, readonly) NSString *picHeight;
@property (strong, nonatomic, readonly) NSString *salePrice;
@property (strong, nonatomic, readonly) NSString *tagPrice;
@property (strong, nonatomic, readonly) NSString *productNum;
@property (strong, nonatomic, readonly) NSString *saleNum;
@property (strong, nonatomic, readonly) NSString *shopName;
@property (strong, nonatomic, readonly) NSArray *promotion;
@property (strong, nonatomic, readonly) NSString *jifen;
@property (strong, nonatomic, readonly) NSString *ptype;
@property (strong, nonatomic, readonly) NSString *brandName;


@property (assign, nonatomic) HZGoodsModelType modelType;



//特卖信息

@property (strong, nonatomic, readonly) NSString *srvStartInterval; //特卖服务开始时间戳
@property (strong, nonatomic, readonly) NSString *srvEndInterval;   //特卖服务器结束时间戳

+(CGFloat)tableViewCellHeight;
+(NSInteger)tableViewCellUFHeight;

- (CGFloat)collectionViewCellHeight;
- (NSInteger)collectionCellUFHeight;

+ (instancetype)modelWithDictionary:(NSDictionary *)dict;
- (instancetype)initModelWithDictionary:(NSDictionary *)dict;


@end
